//
//  XJCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 ZhangXJ. All rights reserved.
//

#import "XJCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface XJCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation XJCollectionViewCell


- (void)setModel:(XJHomeModel *)model {
    if (_model != model) {
        _model = model;
    }
    
    [_imageView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    _titleLabel.text = self.model.name;
    
}

- (void)awakeFromNib {
    // Initialization code
}

@end
